#!/bin/bash
set -e
PNAME=api-server

PID=`ps -ef |grep java |grep ${PNAME} |awk '{print $2}'`
if [ -n "$PID" ];then
    kill -9 $PID
fi
